<?php session_start();
include "../conexao.php";

if (!isset($_SESSION["txt_login"]))
{ print "<script type = 'text/javascript'> location.href = 'index.php'</script>"; exit();}

$acao = $_GET["acao"];
$id = $_GET["id"];


if($acao=="Excluir"){
mysql_query("delete from vagas where id_vagas='$id'");

echo "<META HTTP-EQUIV=REFRESH CONTENT= '0;URL=principal.php?link=31'>
			<script type \"text/JavaScript\">
				alert(\"Vaga excluida com sucesso.\");
			</script>";
}
?>